package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.tudarmstadt.ukp.dkpro.core.arktools.ArktweetTagger;
import de.tudarmstadt.ukp.dkpro.core.tokit.BreakIteratorSegmenter;
import de.unidue.langtech.teaching.pp.example.BaselineEmoticons;
import de.unidue.langtech.teaching.pp.example.BaselineTwitter;
import de.unidue.langtech.teaching.pp.example.BaselineTwitterDoubleEmo;
import de.unidue.langtech.teaching.pp.example.EvaluatorTwitter;
import de.unidue.langtech.teaching.pp.example.ReaderTwitter;

public class TwitterDoubleEmoPipeline
{

    public static void main(String[] args)
        throws Exception
    {
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        ReaderTwitter.class,
                        ReaderTwitter.PARAM_INPUT_FILE, "src/test/resources/test/input.txt"
                ),
                AnalysisEngineFactory.createEngineDescription(
                        ArktweetTagger.class,
                        ArktweetTagger.PARAM_VARIANT, "default"
                ),
                AnalysisEngineFactory.createEngineDescription(BaselineTwitterDoubleEmo.class),
                AnalysisEngineFactory.createEngineDescription(EvaluatorTwitter.class)
        );
    }
}
